libxl: fix reboot failure of migrated domain
authorKouya Shimura <kouya@jp.fujitsu.com>
Mon, 12 Nov 2012 17:03:20 +0000 (17:03 +0000)
committerKouya Shimura <kouya@jp.fujitsu.com>
Mon, 12 Nov 2012 17:03:20 +0000 (17:03 +0000)
The same problem was once fixed by c/s 23878:59c7213b5949
but c/s 25344:0f3b1e13d6af broke it.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c

index a43b3712f60b554d048fe597d893432627de1176..95ce8255bb4b08c16304ac5e414607804b298177 100644 (file)
@@ -1927,7 +1927,7 @@ start:
          * On subsequent reboot etc we should create the domain, not
          * restore/migrate-receive it again.
          */
-        restore_file = NULL;
+        restoring = 0;
     }else{
         ret = libxl_domain_create_new(ctx, &d_config, &domid,
                                       0, autoconnect_console_how);